import request from '@/utils/request'
import Qs from 'qs'

export function listOrder(query) {
	return request.get('/adminOrder/selectOrderByPage', {
		params: {
			...query
		}
	})
}

export function detailOrder(orderId) {
	return request.post('/adminOrder/orderDetail', Qs.stringify({
		orderId: orderId,
	}))
}

export function shipOrder(shipForm) {
	return request.post('/adminOrder/sendGoodsShip', {
		...shipForm
	})
}

export function driverOrder(shipForm) {
	return request.post('/adminOrder/sendGoodsDriver', {
		...shipForm
	})
}

export function refundOrder(query) {
	return request.post('/orderRefundMoney/rejectOrPass', {
		...query
	})
}

